

function Timer(){
	this.startTime = null;
	this.endTime = null;
	this.result = null;
}

Timer.start = function(){
	this.endTime = null;
	this.startTime = new Date().getTime();
}

Timer.bench = function(){
	this.endTime = new Date().getTime();
	this.result = this.endTime - this.startTime;
}

Timer.stop = function(){
	this.bench();
	this.startTime = null;
	this.endTime = null;
}